Conversation
…d InlineKeyboardButton, allowing bots to show a custom emoji on buttons if they are able to use custom emoji in the message.
…dButton, allowing bots to change the color of buttons.
…ass Message. Added the class ChatOwnerChanged and the field chat_owner_changed to the class Message.
…g bots to manage their profile picture.
…eo allowing bots to get information about other available qualities of a video.
…, allowing bots to fetch a list of audios added to the profile of a user.
…is_burned to the class UniqueGift.
Collaborator
Author
|
@Badiboy need your review, done |
Badiboy
requested changes
Feb 14, 2026
telebot/__init__.py
Outdated
| Telegram documentation: https://core.telegram.org/bots/api#setmyprofilephoto | ||
|
|
||
| :param photo: New profile photo for the bot, uploaded using multipart/form-data | ||
| :type photo: :obj:`typing.Union[file_like, str]` |
Collaborator
| def set_my_profile_photo(token, photo): | ||
| method_url = r'setMyProfilePhoto' | ||
| files = None | ||
| payload = {} |
Collaborator
There was a problem hiding this comment.
photo_json, files = photo.convert_input_profile_photo()
payload['photo'] = photo_json
telebot/__init__.py
Outdated
| return types.BotShortDescription.de_json( | ||
| apihelper.get_my_short_description(self.token, language_code=language_code)) | ||
|
|
||
| def set_my_profile_photo(self, photo: Any) -> bool: |
telebot/async_telebot.py
Outdated
| result = await asyncio_helper.get_my_name(self.token, language_code) | ||
| return types.BotName.de_json(result) | ||
|
|
||
| async def set_my_profile_photo(self, photo: Any) -> bool: |
telebot/async_telebot.py
Outdated
| Telegram documentation: https://core.telegram.org/bots/api#setmyprofilephoto | ||
|
|
||
| :param photo: InputProfilePhoto: The new profile photo to set | ||
| :type photo: :obj:`typing.Union[file_like, str]` |
telebot/asyncio_helper.py
Outdated
| async def set_my_profile_photo(token, photo): | ||
| method_url = r'setMyProfilePhoto' | ||
| payload = {} | ||
| files = None |
Collaborator
There was a problem hiding this comment.
photo_json, files = photo.convert_input_profile_photo()
payload['photo'] = photo_json
telebot/async_telebot.py
Outdated
| :return: If successful, returns a UserProfileAudios object. | ||
| :rtype: :class:`telebot.types.UserProfileAudios` | ||
| """ | ||
| return types.UserProfileAudios.de_json(await asyncio_helper.get_user_profile_audios(self.token, user_id, offset, limit)) |
Collaborator
There was a problem hiding this comment.
Better to pass optional params as named.
Collaborator
|
Additionally, description of createForumTopic method had changed (added "private"). |
Collaborator
Author
|
Done |
Collaborator
|
Thanks, bro! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

February 9, 2026
Bot API 9.4